package com.wx.md.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wx.md.tb.SysPermission;

import java.util.List;

public interface SysPermissionDao extends BaseMapper<SysPermission> {
    /**
     * 通过用户id查询用户拥有的权限
     * @param userId
     * @return
     */
    List<SysPermission> getPermissionByUserId(String userId);
}
